package com.wnxy.pawnbackgroundsystem.service.impl;

import com.wnxy.pawnbackgroundsystem.entity.Size;
import com.wnxy.pawnbackgroundsystem.dao.SizeMapper;
import com.wnxy.pawnbackgroundsystem.service.ISizeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 商品规格表 服务实现类
 * </p>
 *
 * @author Lucas
 * @since 2021-10-14
 */
@Service
@Slf4j
public class SizeServiceImpl extends ServiceImpl<SizeMapper, Size> implements ISizeService {

    @Resource
    private SizeMapper sizeMapper;

    public void addSeze(String parameterName,String sizeName,Integer goodsId){
        log.info("开始执行添加规格 参数={},{},{}",parameterName,sizeName,goodsId);
        Size size = new Size();
        size.setParameterName(parameterName);
        size.setSizeName(sizeName);
        size.setGoodsId(goodsId);
        int insert = sizeMapper.insert(size);
    }

}
